package com.cdpm.system.service.impl;

import com.cdpm.system.domain.StrategyInstanceNode;
import com.cdpm.system.mapper.StrategyInstanceNodeMapper;
import com.cdpm.system.service.IStrategyInstanceNodeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @description:
 * @author: longjy
 * @create: 2024-08-29 16:52
 **/
@Service
public class StrategyInstanceNodeServiceImpl implements IStrategyInstanceNodeService {

    @Resource
    StrategyInstanceNodeMapper strategyInstanceNodeMapper;
    @Override
    public List<StrategyInstanceNode> findList(StrategyInstanceNode strategyInstanceNode) {
        List<StrategyInstanceNode> list = strategyInstanceNodeMapper.findList(strategyInstanceNode);
        return list;
    }

    @Override
    public int insert(StrategyInstanceNode strategyInstanceNode) {
        return strategyInstanceNodeMapper.insert(strategyInstanceNode);
    }

    @Override
    public int update(StrategyInstanceNode strategyInstanceNode) {
        return strategyInstanceNodeMapper.updateById(strategyInstanceNode);
    }

    @Override
    public StrategyInstanceNode findById(Long nodeId) {
        return strategyInstanceNodeMapper.selectById(nodeId);
    }
}
